package com.sxpcwlkj.mobile.mapper;


import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sxpcwlkj.framework.mapper.BaseMapperPlus;
import com.sxpcwlkj.mobile.entity.StoreProduct;
import com.sxpcwlkj.mobile.entity.vo.StoreProductVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
* 店铺商品;
*
* @author 西决 942879858@qq.com
* @since 1.0.0 2024-01-26
*/
@Mapper
@Repository
public interface StoreProductMapper extends BaseMapperPlus<StoreProduct, StoreProductVo> {

    /**
    *  列表分页条件查询
    * @param page  分页构造
    * @param sql   sql条件拼接
    * @return
    */
    Page<StoreProductVo> listPageXml(@Param("page")Page<StoreProduct> page, @Param("sql")String sql);

    /**
     * 查询购物侧
     * @param storeId
     * @param memberId
     * @return
     */
    List<StoreProductVo> getStoreCardListXml(@Param("storeId") String storeId, @Param("memberId") String memberId);

}